home *** CD-ROM | disk | FTP | other *** search
- # CVS $Id: object.tcl,v 1.3 1995/02/03 16:55:04 zibi Exp $
- #
- # Script to test the various options of the object class
- #
-
- source tools.tcl
-
- proc shortCB {target cbs} {
-
- set str [keylget cbs helpString]
-
- VtSetValues $target -label $str
- }
-
- proc createObjects {parent shortLabel} {
- VtPushButton $parent.but -label but1 -shortHelpString "but 1" \
- -shortHelpCallback "shortCB $shortLabel"
-
-
- VtPushButton $parent.but2 -label "Button 1" \
- -shortHelpString "but 2"\
- -shortHelpCallback "shortCB $shortLabel"
-
- VtPushButton $parent.exit -label Exit -borderWidth 1 -callback QuitCB
-
- }
-
- set ap [VtOpen ObjectTest]
-
- set dlog [VtFormDialog $ap.dlog ]
-
- set rc [VtRowColumn $dlog.rc -leftSide FORM -rightSide FORM]
-
- set sep [VtSeparator $dlog.sep -below $rc -leftSide FORM -rightSide FORM]
-
- VtPushButton $rc.but44
-
- set shortLabel [VtLabel $dlog.shortLab \
- -topSide $rc -bottomSide FORM -leftSide FORM -rightSide FORM\
- -bottomOffset 2]
-
- createObjects $rc $shortLabel
-
- VtShow $dlog
-
- VtMainLoop
-
-